﻿namespace TroubleshootingofBeanBagAssistant.lCheck
{
	public class NetworkCheck : IDiagnosticCheck
	{
		public string Name => "网络连接检测";

		public CheckResult Run()
		{
			bool network = NetworkDetectionHelper.LocalConnectionStatus();
			if (!network)
			{
				return new CheckResult
				{
					Title = "网络连接不可用，请检查本机是否联网!!",
					Detail = ""
				};
			}
			else
			{
				return new CheckResult
				{
					Title = "网络连接正常",
					Detail = ""
				};
			}
		}
	}
}
